﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MamiMasterPage.master" AutoEventWireup="true"
    CodeFile="Category.aspx.cs" Inherits="Category" %>

<%@ Register Src="~/CustomControls/Newsletter.ascx" TagName="Newsletter" TagPrefix="mami" %>
<%@ Register Src="~/CustomControls/TopSearches.ascx" TagName="TopSearches" TagPrefix="mami" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="Server">
    <div id="breadcrumbs">
        <asp:Literal ID="litNav" runat="server" Visible="true"></asp:Literal>
    </div>
    <div class="container">
        <h1>
            <asp:Literal ID="litTitle" runat="server" /></h1>
        <div class="content bold clearfix">
            <asp:Image CssClass="right" ID="imgCateg" runat="server" BorderWidth="0" EnableViewState="false" />
            <asp:Literal ID="litContent" runat="server" />
        </div>
        <div id="optimizer_container">
            <div id="ads_1">
            </div>
        </div>
        <br />
        <div class="cat-index">
            <asp:DataList ID="dlSubCategories" runat="server" GridLines="None" RepeatColumns="2"
                ItemStyle-VerticalAlign="Top" RepeatDirection="Horizontal" RepeatLayout="Table"
                OnItemDataBound="dlSubCategories_ItemDataBound">
                <ItemTemplate>
                    <div>
                        <h2>
                            <a href="<%# Utils.BuildURL(PageType.Categorii,(int)Eval("CategoryID"), Eval("Title").ToString()) %>"
                                title="<%#  Eval("Title") %>">
                                <%#  Eval("Title") %></a></h2>
                        <asp:Repeater ID="subsubCategories" runat="server" Visible="false">
                            <HeaderTemplate>
                                <ul class="cArrow">
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li><a href="<%# Utils.BuildURL(PageType.Categorii,(int)Eval("CategoryID"), Eval("Title").ToString()) %>"
                                    title="<%#  Eval("Title") %>">
                                    <%#  Eval("Title") %></a></li>
                            </ItemTemplate>
                            <FooterTemplate>
                                </ul>
                            </FooterTemplate>
                        </asp:Repeater>
                        <asp:Repeater ID="repArticles" runat="server" Visible="false">
                            <HeaderTemplate>
                                <ul>
                            </HeaderTemplate>
                            <ItemTemplate>
                                <li><a href="<%# Utils.BuildURL(PageType.Articole, (int)Eval("ID"), Eval("Title").ToString()) %>">
                                    <%#  Eval("Title") %></a></li>
                            </ItemTemplate>
                            <FooterTemplate>
                                </ul>
                            </FooterTemplate>
                        </asp:Repeater>
                    </div>
                </ItemTemplate>
            </asp:DataList>
            <asp:Repeater ID="repAllArticles" runat="server">
                <HeaderTemplate>
                    <ul>
                </HeaderTemplate>
                <ItemTemplate>
                    <li><a href="<%# Utils.BuildURL(PageType.Articole, (int)Eval("ID"), Eval("Title").ToString()) %>">
                        <%#  Eval("Title") %></a></li>
                </ItemTemplate>
                <FooterTemplate>
                    </ul>
                </FooterTemplate>
            </asp:Repeater>
        </div>
    </div>
    <div class="center red bold">
        <asp:Literal ID="litMessage" runat="server" /></div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="RightContentHolder" runat="Server">
    <mami:Newsletter ID="newsletter" runat="server" />
    <mami:TopSearches ID="topsearches" runat="server" />
</asp:Content>
<asp:Content ID="Content4" ContentPlaceHolderID="SiteStructure" runat="Server">
</asp:Content>
